import request from "@/utils/request.js"
// 用户信息
export function getUserInfo(data) {
	return request.Request({
		url: '/kwkd/personal/public/detail',
		method: 'GET',
		data
	});
}
//私域查询1
export function siyu1() {
	return request.Request({
		url: '/pay/goods/settings/query/' + uni.getStorageSync('userId'),
		method: 'GET',
	});
}
// 个性私域信息修改
export function changePrivateInfoApi(data) {
	return request.Request({
		url: '/pay/goods/settings/addOrUpdate',
		method: 'POST',
		data
	});
}
// 个性私域引流私域二维码上传以及修改
export function uploadOrChangePrivateQRcodeApi(data) {
	return request.Request({
		url: '/kwkd/attractUrl/addOrUpdate',
		method: 'POST',
		data
	});
}
// 是否锁定私域二维码
export function checkIsLockApi() {
	return request.Request({
		url: '/kwkd/attractUrl/detail',
		method: 'GET',
	});
}
// 开通解锁私域二维码
export function payPrivateApi(data) {
	return request.Request({
		url: '/kwkd/pay',
		method: 'POST',
		data
	});
}
// 我的小组
export function myGroup(data) {
	return request.Request({
		url: '/kwkd/team/myTeams',
		method: 'POST',
		data
	});
}
// 我的群
export function myQQ(data) {
	return request.Request({
		url: '/kwkd/userGroup/querySelf',
		method: 'POST',
		data
	});
}
// 我的活动
export function myAct(data) {
	return request.Request({
		url: '/kwkd/teamActivity/myActivities',
		method: 'POST',
		data
	});
}
// 我的每日打卡
export function myDayNote(data) {
	return request.Request({
		url: '/kwkd/teamActivityTask/myEveryDayTask',
		method: 'POST',
		data
	});
}
// 我的打卡日历
export function myCalendar(data) {
	return request.Request({
		url: '/kwkd/teamActivityTask/myTaskCalendar',
		method: 'POST',
		data
	});
}
// 累计打卡统计
export function myTaskNoteNum(data) {
	return request.Request({
		url: '/kwkd/notes/myEveryDayTaskSum',
		method: 'GET',
		data
	});
}
// 消息-所有未读消息的数量统计
export function messAllUnreadNum(data) {
	return request.Request({
		url: '/kwkd/message/unReadTotal',
		method: 'GET',
		data
	});
}
// 消息-问答消息未读数量统计
export function messQuesAccount(data) {
	return request.Request({
		url: '/kwkd/qaMessage/unReadTotal',
		method: 'GET',
		data
	});
}
// 消息-系统消息未读数量统计
export function messSysAccount(data) {
	return request.Request({
		url: '/kwkd/systemMessage/unReadTotal',
		method: 'GET',
		data
	});
}
// 消息-问答列表
export function messQuesList(data) {
	return request.Request({
		url: '/kwkd/qaMessage/page',
		method: 'POST',
		data
	});
}
// 消息-系统消息列表
export function messSysList(data) {
	return request.Request({
		url: '/kwkd/systemMessage/page',
		method: 'POST',
		data
	});
}
// 消息-问答消息标记为已读
export function messReadOper(data) {
	return request.Request({
		url: '/kwkd/qaMessage/markIsRead',
		method: 'PUT',
		data
	});
}
// 消息-系统消息标记为已读
export function messSysReadOper(data) {
	return request.Request({
		url: '/kwkd/systemMessage/markIsRead',
		method: 'PUT',
		data
	});
}
// 消息-问答消息类型数量
export function messQuesTabNoReadNum(data) {
	return request.Request({
		url: '/kwkd/qaMessage/unReadForBodyType',
		method: 'GET',
		data
	});
}
// 消息-找人消息列表
export function messFindList(data) {
	return request.Request({
		url: '/kwkd/foundPersonMessage/page',
		method: 'POST',
		data
	});
}
// 消息-找人消息各模块未读数量
export function messFindUnreadNum(data) {
	return request.Request({
		url: '/kwkd/foundPersonMessage/unReadForBodyType',
		method: 'GET',
		data
	});
}
// 消息-找人消息标记为已读
export function messFindReadOper(data) {
	return request.Request({
		url: '/kwkd/foundPersonMessage/markIsRead',
		method: 'PUT',
		data
	});
}
// 个人中心-修改个人信息
export function editMyInfo(data) {
	return request.Request({
		url: '/kwkd/personal/update',
		method: 'PUT',
		data
	});
}
// 我的-粉丝、关注数统计
export function focusFanNum(data) {
	return request.Request({
		url: '/kwkd/Fans/public/followers',
		method: 'GET',
		data
	});
}
// 关于我们
export function aboutUs(id) {
	return request.Request({
		url: '/kwkd/aboutUs/public/detail?flowId=' + id,
		method: 'GET',
	});
}
// 问题反馈
export function feedback(data) {
	return request.Request({
		url: '/kwkd/feedback/add',
		method: 'POST',
		data
	});
}
// 粉丝、关注列表
export function focusFanList(data) {
	return request.Request({
		url: '/kwkd/Fans/public/query',
		method: 'POST',
		data
	});
}
// 我的问答-待回答
export function myWaitQues(data) {
	return request.Request({
		url: '/kwkd/QaQuestion/public/myWaitingAnswerPage',
		method: 'POST',
		data
	});
}
// 我的问答-已回答
export function myAnswerQues(data) {
	return request.Request({
		url: '/kwkd/QaQuestion/public/myAnsweredPage',
		method: 'POST',
		data
	});
}
// 我的问答-我提问
export function myQues(data) {
	return request.Request({
		url: '/kwkd/QaQuestion/public/myQuestionPage',
		method: 'POST',
		data
	});
}

// 我的笔记
export function myNote(data) {
	return request.Request({
		url: '/kwkd/notes/public/myNotes',
		method: 'POST',
		data
	});
}
// 个人主页-问答
export function homePageQues(data) {
	return request.Request({
		url: '/kwkd/recommend/public/recommendPersonalQuestionAnswer',
		method: 'POST',
		data
	});
}
// 个人主页-小组
export function homePageGroup(data) {
	return request.Request({
		url: '/kwkd/team/public/personalTeams',
		method: 'POST',
		data
	});
}
// 我的-钱包
export function walletRecord(data) {
	return request.Request({
		url: '/kwkd/payWater/query',
		method: 'POST',
		data
	});
}
// 我的-钱包-退款
export function walletBack(data) {
	return request.Request({
		url: '/kwkd/backWater/listPage',
		method: 'POST',
		data
	});
}
// 教育信息
export function addEducation(data) {
	return request.Request({
		url: '/kwkd/education/add',
		method: 'POST',
		data
	});
}
// 教育信息列表
export function educationList(data) {
	return request.Request({
		url: '/kwkd/education/query',
		method: 'POST',
		data
	});
}
// 删除教育信息
export function delEducation(data) {
	return request.Request({
		url: '/kwkd/education/delete?id=' + data.id,
		method: 'DELETE',
		data
	});
}
//教育信息详情
export function eduDetail(data) {
	return request.Request({
		url: '/kwkd/education/detail',
		method: 'GET',
		data
	});
}
// 修改教育信息
export function editEdu(data) {
	return request.Request({
		url: '/kwkd/education/edit',
		method: 'PUT',
		data
	});
}
// 添加职业信息
export function addJob(data) {
	return request.Request({
		url: '/kwkd/professional/add',
		method: 'POST',
		data
	});
}
// 删除职业信息
export function delJob(data) {
	return request.Request({
		url: '/kwkd/professional',
		method: 'GET',
		data
	});
}
// 修改职业信息
export function editJob(data) {
	return request.Request({
		url: '/kwkd/professional/update',
		method: 'POST',
		data
	});
}
// 我的职业信息
export function jobList(data) {
	return request.Request({
		url: '/kwkd/professional/query',
		method: 'POST',
		data
	});
}
// 职业详情信息
export function jobDetail(data) {
	return request.Request({
		url: '/kwkd/professional/queryById',
		method: 'GET',
		data
	});
}

// 文凭对应的教育信息
export function getEdu(data) {
	return request.Request({
		url: '/kwkd/education/diploma',
		method: 'GET',
		data
	});
}
// 个人中心-找人
export function findPeople(data) {
	return request.Request({
		url: '/kwkd/foundPerson/public/personalFoundPersons',
		method: 'POST',
		data
	});
}
// 个人中心-找人-委托列表
export function pleasePeople(data) {
	return request.Request({
		url: '/kwkd/foundPerson/myFoundPersonsEntrust',
		method: 'POST',
		data
	});
}
// 个人主页-找人
export function personalHome(data) {
	return request.Request({
		url: '/kwkd/foundPerson/public/personalHome',
		method: 'POST',
		data
	});
}
// 个人中心-下架找人
export function offFound(data) {
	return request.Request({
		url: '/kwkd/foundPerson/public/downloadEntrust',
		method: 'POST',
		data
	});
}
// 推广列表
export function memberList(data) {
	return request.Request({
		url: '/pay/extension/new/list',
		method: 'POST',
		data
	});
}
// 推广-新增下属
export function addMember(data) {
	return request.Request({
		url: '/pay/flow/member/create',
		method: 'POST',
		data
	});
}
// 推广-获取海报列表
export function getPoster(data) {
	return request.Request({
		url: '/bkzs/placard/queryBlbPlacard',
		method: 'GET',
		data
	});
}
// 推广-修改比例
export function editRate(data) {
	return request.Request({
		url: '/pay/flow/master/update',
		method: 'POST',
		data
	});
}
// 推广-客户管理（推广列表）
export function extendList(data) {
	return request.Request({
		url: '/pay/flow/master/customerManagement',
		method: 'POST',
		data
	});
}
// 推广-获取可配置的比例项目
export function extendProList(data) {
	return request.Request({
		url: '/pay/extension/new/flowRateList',
		method: 'POST',
		data
	});
}
// 推广-专属码
export function ownerCodeList(data) {
	return request.Request({
		url: '/pay/flow/master/extension/codePic',
		method: 'GET',
		data
	});
}
// 推广-团队业绩
export function memberScore(data) {
	return request.Request({
		url: '/pay/extension/new/teamProfit',
		method: 'POST',
		data
	});
}

// 获取代理
export function wxgetAgent() {
	return request.Request({
		url: '/usercenter/user/getInfo',
		method: 'GET',
	});
}



// 获取个人的分润比例
export function getPersonRun() {
	return request.Request({
		url: '/pay/flow/master/costRateInfo',
		method: 'GET',
	});
}

// 获取个人的可提现余额
export function balanceAndProfit() {
	return request.Request({
		url: '/pay/wallet/balanceAndProfit',
		method: 'GET',
	});
}

//申请提现
export function insertWithdrawalRecords(data) {
	return request.Request({
		url: '/pay/wallet/insertWithdrawalRecords',
		method: 'POST',
		data
	})
}

//提现记录
export function withdrawDepositList(data) {
	return request.Request({
		url: '/pay/withdraw/deposit/listWithTitle',
		method: 'POST',
		data
	})
}

//查看上级
export function queryParentFlower() {
	return request.Request({
		url: '/pay/extension/new/queryParentFlower',
		method: 'get'
	})
}

//退出团队
export function exitTeam() {
	return request.Request({
		url: '/pay/extension/new/exitTeam',
		method: 'get'
	})
}

//查询下级接口
export function querySonFlower(id) {
	return request.Request({
		url: '/pay/extension/new/querySonFlower/' + id,
		method: 'get'
	})
}

//查询openid
export function getOpenid(data) {
	return request.Request({
		url: '/auth/getOpenid',
		method: 'post',
		data
	})
}

//查询个性私域内小程序的名称、小程序简介
export function getMineProgram(id) {
	return request.Request({
		url: '/pay/goods/firstPage/query/' + id,
		method: 'get'
	})
}